package com.noahplat.user.utils;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * @author 李东
 * @version 1.0.0
 * @Date: 2021/3/11 15:26
 **/
public class PasswordDao {

    @NotEmpty(message = "密码不能为空")
    @Length(max = 64, message = "长度不能超过64位")
    private String password;    //密码

    @NotEmpty(message = "手机号不能为空")
    @Pattern(regexp = "^(1[3-9])\\d{9}$", message = "手机号码格式错误")
    @Length(min = 11, max = 11, message = "长度不能超过11位")
    private String phone;   //手机号

    @NotEmpty(message = "验证码不能为空")
    private String sms;

    @NotEmpty(message = "系统标识不能为空")
    private String stid; //系统标识

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getSms() {
        return sms;
    }

    public void setSms(String sms) {
        this.sms = sms;
    }

    public String getStid() {
        return stid;
    }

    public void setStid(String stid) {
        this.stid = stid;
    }
}
